From f6d8e680745c2de33193d7e4b67115902a782075 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Wed, 5 May 2010 18:29:21 +0200 Subject: [PATCH] Use -ffloat-store on i386. --- debian/rules | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/rules b/debian/rules index 0f0dcbcdb..056816aba 100755 --- a/debian/rules +++ b/debian/rules @@ -18,6 +18,13 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) else CFLAGS += -O2 endif + +# Extended precision on i386 results in weird bugs, so we build +# with -ffloat-store. +ifeq (i386,$(strip $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU))) +CFLAGS += -ffloat-store +endif + LDFLAGS += -Wl,-z,defs CONFENV = LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" -- 2.30.2